﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DVSProject.Models.ModelModels>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create Model
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create Model</h2>
    <% using (Html.BeginForm())
       {%>
    <%= Html.ValidationSummary(true) %>
    <fieldset>
        <legend>Fields</legend>
        <%--   <div class="editor-label">
                <%= Html.LabelFor(model => model.ModelId) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ModelId) %>
                <%= Html.ValidationMessageFor(model => model.ModelId) %>
            </div>--%>
        <div class="editor-label">
            Name Th :
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.NameTh) %>
            <%= Html.ValidationMessageFor(model => model.NameTh) %>
         <p class="errormessage" align="left">
                <%=TempData["errornameth"]%>
            </p>
        </div>
       
        <div class="editor-label">
            Name En :
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.NameEng) %>
            <%= Html.ValidationMessageFor(model => model.NameEng) %>
            <p class="errormessage" align="left">
                <%=TempData["errornameeng"]%>
            </p>
        </div>
        <div class="editor-label">
            Rent Basic :
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.RentBasic) %>
            <%= Html.ValidationMessageFor(model => model.RentBasic) %>
        </div>
        <div class="editor-label">
            Rent For Use :
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.RentForUse) %>
            <%= Html.ValidationMessageFor(model => model.RentForUse) %>
        </div>
        <div class="editor-label">
            Conversion Rate :
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.ConversionRate) %>
            <%= Html.ValidationMessageFor(model => model.ConversionRate) %>
        </div>
        <%--
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Status) %>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateBy) %>
                <%= Html.ValidationMessageFor(model => model.CreateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CreateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.CreateOn) %>
                <%= Html.ValidationMessageFor(model => model.CreateOn) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateBy) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateBy) %>
                <%= Html.ValidationMessageFor(model => model.UpdateBy) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.UpdateOn) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.UpdateOn) %>
                <%= Html.ValidationMessageFor(model => model.UpdateOn) %>
            </div>--%>
        <p>
            <input class="buttonSummit" type="submit" value="Create" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
